import request from '@/utils/request'

// 查询样本框列表
export function listSamplebox(query) {
  return request({
    url: '/erecord/samplebox/list',
    method: 'get',
    params: query
  })
}

// 查询样本框详细
export function getSamplebox(sampleboxCode) {
  return request({
    url: '/erecord/samplebox/' + sampleboxCode,
    method: 'get'
  })
}

// 新增样本框
export function addSamplebox(data) {
  return request({
    url: '/erecord/samplebox',
    method: 'post',
    data: data
  })
}

// 修改样本框
export function updateSamplebox(data) {
  return request({
    url: '/erecord/samplebox',
    method: 'put',
    data: data
  })
}

// 删除样本框
export function delSamplebox(sampleboxCode) {
  return request({
    url: '/erecord/samplebox/' + sampleboxCode,
    method: 'delete'
  })
}
